home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10651 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  47 lines

  1. Path: uuneo.neosoft.com!usenet
  2. From: Wmatthew@lan-aces.com (W. Matthews)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: How can I include IOSTREAM.H only once?
  5. Date: 8 Mar 1996 22:33:44 GMT
  6. Organization: LAN-ACES, Inc.
  7. Message-ID: <4hqck8$fvc@uuneo.neosoft.com>
  8. References: <4hbi55$899@sam.inforamp.net> <4hc09v$136@news1.usa.pipeline.com> <4hj42l$elu@sam.inforamp.net>
  9. NNTP-Posting-Host: 198.65.178.8
  10. X-Newsreader: WinVN 0.92.5
  11.  
  12. In article <4hj42l$elu@sam.inforamp.net>, rmorin@inforamp.net (Randy Charles Morin) says:
  13. >
  14. >In article <4hc09v$136@news1.usa.pipeline.com>,
  15. >   grantp@usa.pipeline.com(Pete) wrote:
  16. >>I believe this answer is to a question other than the one asked. 
  17. >>There's no way to accomplish what the original poster wants to do, 
  18. >>although eader precompilation will ease the situation. 
  19. >
  20. >And I believe Pete is getting on my nerves.  Just because you have an another 
  21. >suggestion, doesn't mean that my suggestion is wrong.  If you have an 
  22. >alternative suggestion, then state it.  But don't say another suggestion is 
  23. >not answering the question.  If you think about my suggestion then you'll 
  24. >understand that it is complementary to your suggestion, but that would be 
  25. >asking too much.
  26. >
  27. >Agrivar
  28.  
  29. I haven't seen the entire string relating to this, but some compilers have
  30. a useful #define statement in the include files.
  31. The way to take advantage of this is to do something along the following
  32. lines in each source module that may include a particular header.  However,
  33. this does not work in every situation: (I use stdio.h as an example)
  34. #ifndef __STDIO__
  35. #include <stdio.h>
  36. #endif
  37.  
  38. ________________________________________________
  39. |Wyatt Matthews:       Tech Support Department |
  40. |WMATTHEW@LAN-ACES.COM        -Internet-       |
  41. |WMATTHEW.MHS@LAN-ACES          -MHS-          |
  42. |LAN-ACES Tech Support      (713)890-9786      |
  43. |LAN-ACES BBS               (713)890-9790      |
  44. |LAN-ACES Fax               (713)890-9731      |
  45. |LAN-ACES Sales             (713)890-9787      |
  46. |______________________________________________|
  47.